<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>库存</title>
<script type="text/javascript" src="static/easyui/jquery.min.js"></script>
<script type="text/javascript" src="static/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="static/easyui/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" href="static/easyui/themes/icon.css"/>
<link rel="stylesheet" href="static/easyui/themes/macosx/easyui.css"/>
</head>
<body>
<script type="text/javascript">
		//库存查询表格
		$(function(){
			$('#kucunbiaoge').datagrid({
			    url:'kucunliebiao',
			    columns:[[
			    	{field:'',checkbox:true,width:"160px",align:'center'},
					{field:'inventory_yk_id',title:'库存编号',width:"160px",align:'center'},
					{field:'drug_id',title:'药品编号',width:"160px",align:'center'},
					{field:'drug_name',title:'药品名称',width:"160px",align:'center'},
					{field:'drug_pc',title:'批次',width:"160px",align:'center'},
					{field:'inventory_number',title:'库存',width:"160px",align:'center'},
					{field:'factory_name',title:'供应商',width:"160px",align:'center'}
			    ]],
			    pagination:true,
			    pageNumber:1,
			    pageSize:5,
			    pageList:[5,10,15]			       
			});											
		});

		//文本框回车事件搜索
		$('#exchangeSear').searchbox({
			searcher:function(value,name){
				$('#kucunbiaoge').datagrid({
					url:'kucunliebiao?drug_name='+value,	
				});				  
			}
		});
</script>
<div style="border:solid 1px #19AA8D;border-radius:5px;width:1100px;margin-left:30px;margin-top:30px;height:370px;">
	<div style="margin-top:35px;margin-left:55px;">
		<input id="exchangeSear" class="easyui-searchbox" style="width:280px;height:30px;"
						data-options="label:'药品名称：',prompt:'请输入药品名称',labelAlign:'right'">									
	</div>
	<div style="margin-top:30px;margin-left:55px;">
	<!-- 库存表格 -->
		<table id="kucunbiaoge" class="easyui-datagrid" data-options="fitColumns:true" style="width:1000px;padding:20px;margin-top:20px;height:250px;"></table>
	</div>
</div>
</body>
</html>